package com.match.competition_sub.mapper;

import com.match.competition_sub.entity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author AdiosF
 * @since 2021-09-21
 */
public interface TeacherMapper extends BaseMapper<Teacher> {
    //获得用户角色名称
    String getRoleNameByRoleId(String roleId);

    //移除中间表信息
    void removeUserAndRole(String number);

    //获取角色ID
    String getRoleIdByRoleName(String roleName);

    //修改申请表中教师的姓名信息
    void updateCompetitionInfoTeacherName(String teacherName, String number);
}
